package com.front.frontdemo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by Administrator on 2018/7/5.
 */
@Controller
public class Index {
    @GetMapping(value = "/about")
    public String about(){
        return "about";
    }

    @GetMapping(value = "/contact")
    public String contact(){
        return "contact";
    }

    @GetMapping(value = "/post")
    public String post(){
        return "post";
    }


    @GetMapping(value = "/index")
    public String index2(){
        return "index";
    }

    @GetMapping(value = "")
    public String index(){
        return "index";
    }


}
